package com.lovo.service.impl;

import com.lovo.dao.StaffMapper;
import com.lovo.dao.StoreMapper;
import com.lovo.model.Staff;
import com.lovo.model.Store;
import com.lovo.service.StaffService;
import com.lovo.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class StaffServiceImpl implements StaffService {
    @Override
    public List<Staff> getStaffById(int store_id) {
        SqlSession sqlSession= SqlSessionUtil.getSqlSession();
        StaffMapper mapper=sqlSession.getMapper(StaffMapper.class);
        List<Staff>list = mapper.getStaffById(store_id);
        sqlSession.commit();
        return list;
    }
}
